@{
    @*当前模型没有使用，未显示出来*@
    Model.Classes.Clear();
    Model.Classes.Add("page-sidebar-menu");
    var tag = Tag(Model, "div");
    // 所有一级菜单    
    var items = (IList<dynamic>)Enumerable.Cast<dynamic>(Model.Items);   
}
<!-- BEGIN SIDEBAR -->
@if(items.Count() > 0)
{
<div class="page-sidebar-wrapper">
    <div class="page-sidebar navbar-collapse collapse">
        <!-- BEGIN SIDEBAR MENU -->
        <ul class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
            <li class="sidebar-toggler-wrapper">
                <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
                <div class="sidebar-toggler" style="margin-bottom:15px">
                </div>
                <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
            </li>
            <li class="sidebar-search-wrapper">
                <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
                <!-- DOC: Apply "sidebar-search-bordered" class the below search form to have bordered search box -->
                <!-- DOC: Apply "sidebar-search-bordered sidebar-search-solid" class the below search form to have bordered & solid search box -->
                <!--<form class="sidebar-search " action="extra_search.html" method="POST">
                    <a href="javascript:;" class="remove">
                    <i class="icon-close"></i>
                    </a>
                    <div class="input-group">
                        <input type="text" class="form-control" placeholder="Search...">
                        <span class="input-group-btn">
                        <a href="javascript:;" class="btn submit"><i class="icon-magnifier"></i></a>
                        </span>
                    </div>
                </form>-->
                <!-- END RESPONSIVE QUICK SEARCH FORM -->
            </li>
            @DisplayChildren(Model)
        </ul>
        <!-- END SIDEBAR MENU -->
    </div>
</div>
}
<!-- END SIDEBAR -->